const mongoose = require("../db/index");

const shopItemSchema = mongoose.Schema(
  {
    shopId: {
      type: String,
      required: true,
    },
    name: {
      type: String,
      reuired: true,
    },
    imgUrl: String,
    sales: Number,
    price: Number,
    oldPrice: Number,
    tabs: [String],
  },
  { timestamps: true }
);

const shopItemModel = mongoose.model("shopItem", shopItemSchema);

module.exports = shopItemModel;
